@mixin flex-column {
  display: flex;
  flex-direction: column;
}

@mixin flex-row {
  display: flex;
  flex-direction: row;
}

.annual-diy-wrap {
  box-sizing: border-box;
  overflow-x: hidden;
  background: #F5F5F5;

  .btn-wrap {
    position: fixed;
    box-sizing: border-box;
    bottom: 32rpx;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 102;
    padding: 0 24rpx;

    .at-button--disabled {
      background-color: #BBBBBB;
      opacity: 1;
      border: 0;
      border-color: #BBBBBB;
    }
  }

  .list {
    box-sizing: border-box;
    width: 100%;
    .content-wrap {
      box-sizing: border-box;
      position: relative;
      padding-top: 20rpx;
      padding-bottom: 170rpx;
      padding-left: 24rpx;
      padding-right: 24rpx;
      width: 100%;

      .item-info {
        box-sizing: border-box;
        position: relative;
        @include flex-row;
        align-items: center;
        min-height: 228rpx;
        width: 100%;
        padding: 24rpx;
        margin-bottom: 20rpx;
        border-radius: 14rpx;
        overflow: hidden;
        background-color: #ffffff;

        &.checked {
          &::after {
            position: absolute;
            content: '';
            right: 0;
            bottom: 0;
            display: inline-block;
            width: 72rpx;
            height: 56rpx;
            background: url('https://static3.jekunauto.com/img/others/check.png');
            background-size: contain;
            border-radius: 0 0 12rpx 0;
            overflow: hidden;
          }
        }
        .left {
          display: flex;
          align-items: center;

          .annual-img {
            height: 180rpx;
            width: 180rpx;
            object-fit: cover;
            border-radius: 10rpx;
            background-color: #eee;
          }
        }

        .right {
          box-sizing: border-box;
          height: auto;
          margin-left: 24rpx;
          color: #333333;
          font-size: 26rpx;
          @include flex-column;
          flex: 1;

          .r-bottom-wrap {
            @include flex-column;
            flex: 1;
            justify-content: space-between;
            margin-top: 12rpx;

            .r-bottom {
              &-t {
                @include flex-row;
                align-items: center;
                color: #666666;
                font-size: 20rpx;

                .tag {
                  max-width: 250rpx;
                  padding: 3rpx 24rpx;
                  border-radius: 10rpx;
                  font-size: 24rpx;
                  margin-right: 12rpx;
                  background-color: #F5F5F5;
                }
              }

              &-b {
                @include flex-row;
                justify-content: space-between;
                margin-top: 8rpx;
                font-size: 20rpx;
                color: #FF3B30;

                .price {
                  font-size: 42rpx;
                  margin-right: 12rpx;
                }

                .origin-price {
                  font-size: 24rpx;
                  color: #999999;
                  text-decoration: line-through;
                }

                &-r {
                  align-self: flex-end;
                }
              }
            }

            .r-bottom-r {
              align-self: flex-end;

              .btn-wrap {
                position: relative;
                width: 162rpx;
                height: 54rpx;
                background-color: #12B3FF;
                border-radius: 10rpx;

                .btn {
                  position: absolute;
                  width: 162rpx;
                  height: 54rpx;
                  line-height: 53rpx;
                  text-align: center;
                  color: #ffffff;
                  font-size: 24rpx;
                  border-radius: 10rpx;
                  overflow: hidden;
                }

                .dotted {
                  position: absolute;
                  height: 30rpx;
                  line-height: 30rpx;
                  font-size: 22rpx;
                  min-width: 30px;
                  border-radius: 15rpx;
                  top: -15rpx;
                  right: 15rpx;
                  text-align: center;
                  background-color: #FF3B30;
                  color: #ffffff;
                }
              }
            }
          }
        }
      }
    }
  }
}
